import json

python_data = '''
{'work': {'ctime': 1749902608, 'mtime': 1749902608, 'reply': {'name': '麦迪嘉', 'payee': ['广州山香科技有限公司'], 'phone': '13622744268', 'id_number': '440105200311170927', 'pay_order': '20250614194256219504616'}, 'userid': 'WangTing', 'answer_id': True, 'user_name': '王婷', '任务类型': '山香自助开具发票', 'answer_status': None}, 'user_id': 'WangTing', 'platform': 'qyweixin_form'}
'''


json_data = json.dumps(python_data,open('json_data.json','w',encoding='utf-8'),ensure_ascii= False,indent=4)
print(json_data)

# pip install jsonpath